package com.bestcem.xm.user.util.convert;

import com.bestcem.xm.user.controller.vo.user.request.IndustryVO;
import com.bestcem.xm.user.grpc.client.dto.IndustryDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * 行业转换类
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/05/20 18:30
 */
@Mapper(componentModel = "spring")
public interface IndustryConvert {

    @Mapping(target = "id", source = "industryId")
    @Mapping(target = "codeLink", source = "qrCode")
    IndustryVO dto2Vo(IndustryDTO industryDTO);

    List<IndustryVO> dtos2Vos(List<IndustryDTO> industryDTOList);
}
